<template>
    <div >
        <el-image :src="src"></el-image>
        <el-button type="primary" class="to-home" @click="toHome">返回首页</el-button>
    </div>
</template>
<script>
export default {
    name: 'Page404',
    data() {
        return {
            src: require('@/assets/404.png')
        }
    },
    methods: {
        toHome() {
            this.$router.push({path: '/index'})
        }
    }
}
</script>
<style lang="stylus" scoped>
.to-home
    position fixed
    top 50%
    right 200px
</style>